package com.bowen.security.rsa.contant;

public enum BaseErrorEnum {
  // 数据操作错误定义
  SUCCESS("200", "成功!"), BODY_NOT_MATCH("400", "请求的数据格式不符!"), SIGNATURE_NOT_MATCH("401", "请求的数字签名不匹配!"),
  NOT_FOUND("404", "未找到该资源!"), INTERNAL_SERVER_ERROR("500", "服务器内部错误!"), SERVER_BUSY("503", "服务器正忙,请稍后再试!"),
  TRADE_MISS("1002", "订单不存在!"), REPEAT_TRADE_NO("1001", "重复提交订单"), ILLEGAL_REQUEST("1003", "未授权请求"),
  SIGN_ERROR("1004", "签名无效"), APPID_ERROR("1005", "appid is null");

  /** 错误码 */
  private String resultCode;

  /** 错误描述 */
  private String resultMsg;

  BaseErrorEnum(String resultCode, String resultMsg) {
    this.resultCode = resultCode;
    this.resultMsg = resultMsg;
  }

  public String getResultCode() {
    return resultCode;
  }

  public String getResultMsg() {
    return resultMsg;
  }

  public String toString() {
    return resultCode + ":" + resultMsg;
  }
}